package com.closeenough.app;

import android.os.Bundle;
import android.preference.PreferenceActivity;

public class SettingsActivity extends PreferenceActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        setContentView(R.layout.activity_settings);
//        getActionBar().setDisplayHomeAsUpEnabled(true);
        addPreferencesFromResource(R.xml.settings);
    }

//    @Override
//    protected void onStop(){
//       super.onStop();
//
//      // We need an Editor object to make preference changes.
//      // All objects are from android.context.Context
//      SharedPreferences settings = getSharedPreferences("settings", 0);
//      SharedPreferences.Editor editor = settings.edit();
//      editor.putInt("radius", 500);
//
//      // Commit the edits!
//      editor.commit();
//    }
//    @Override
//    public boolean onCreateOptionsMenu(Menu menu) {
//        getMenuInflater().inflate(R.menu.activity_settings, menu);
//        return true;
//    }

    
//    @Override
//    public boolean onOptionsItemSelected(MenuItem item) {
////        switch (item.getItemId()) {
////            case android.R.id.home:
////                NavUtils.navigateUpFromSameTask(this);
////                return true;
////        }
//        return super.onOptionsItemSelected(item);
//    }
}
